package cn.tom;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
@EnableCaching  //缓存启动注解
@MapperScan("cn.tom.mapper")	//扫描mapper接口
public class DemoApplication {
	public static void main(String[] args) {
		ConfigurableApplicationContext ioc
				= SpringApplication.run(DemoApplication.class, args);

		System.out.println("启动成功！");
	}
}
